home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #3 / Amiga Plus CD - 2002 - No. 03.iso / AmiSoft / Dev / Lang / Nano.readme < prev   
Encoding:
Text File  |  2003-02-24  |  3.8 KB  |  113 lines

  1. Short:    Interpreter with syntax near to BASIC and C
  2. Author:   jay-t@gmx.net
  3. Uploader: jay-t@gmx.net
  4. Version:  0.33
  5. Type:     dev/lang
  6.  
  7. Required: AmigaOS 2.0 (maybe 1.3 works too)
  8.  
  9. Long:
  10.  
  11.     Nano is a new interpreter with syntax near to BASIC and C.
  12.     The main features are:
  13.  
  14.     - types: short int, long int, double and string.
  15.     - arrays
  16.     - advanced array handling
  17.     - subroutines
  18.     - ANSI output functions: text styles, text locating, cursor moving...
  19.     - virtual memory
  20.     - file in-/output
  21.  
  22.     new: input function bugfix, now it's ok. Sorry!
  23.  
  24.  
  25.     This is the famous "Hello world!" example:
  26.  
  27.     print "Hello world!", /n;
  28.  
  29.     What's the "/n" doing? It prints a linefeed.
  30.     To start this example, open a Shell and type:
  31.  
  32.     cd nanoprog:
  33.     nano hello.n
  34.  
  35.  
  36.     Let's say we want to print it five times. Then we need a loop:
  37.  
  38.     ---- cut --------------------------------------------
  39.  
  40.     // prints "Hello world!" five times
  41.  
  42.     int i;                          declare i
  43.  
  44.     i = 1;
  45.     while i <= 5;
  46.         print "Hello world!", /n;
  47.         inc i;                      replaces "i = i + 1;"
  48.     wend;
  49.  
  50.     ---- cut end ----------------------------------------
  51.  
  52.     This example shows the two ways to use comments. Everything without
  53.     a following semicolon is ignored. A whole line starts with "//".
  54.  
  55.     Now lets get some input:
  56.  
  57.     ---- cut -----------------------------
  58.  
  59.     string name[31];
  60.  
  61.     input "Your first name? " name;
  62.     print /n, "Hello ", name, "!", /n;
  63.  
  64.     ---- cut end -------------------------
  65.  
  66. -------------------------------------------------------------------------
  67. LhA Evaluation V1.38 - Copyright (c) 1991,92 Stefan Boberg.
  68. All rights reserved. Not for commercial use.
  69.  
  70. Listing of archive 'nano.lha':
  71. Original  Packed Ratio    Date     Time    Name
  72. -------- ------- ----- --------- --------  -------------
  73.      628     265 57.8% 06-Aug-02 08:07:20 +include.info
  74.       14      14  0.0% 23-Nov-02 09:19:48 +cl.dec
  75.       49      49  0.0% 23-Nov-02 09:20:00 +cl.sub
  76.       79      74  6.3% 23-Nov-02 09:20:32 +config.n
  77.       60      60  0.0% 23-Nov-02 09:20:20 +doub_pre.dec
  78.      552     242 56.1% 23-Nov-02 09:20:48 +doub_pre.sub
  79.      340     173 49.1% 23-Nov-02 09:21:00 +file.h
  80.       51      51  0.0% 23-Nov-02 09:21:14 +get_time.dec
  81.      717     252 64.8% 23-Nov-02 09:21:30 +get_time.sub
  82.      725     332 54.2% 23-Nov-02 09:22:34 +math.h
  83.       44      44  0.0% 23-Nov-02 09:22:52 +prpos.dec
  84.       82      76  7.3% 23-Nov-02 09:23:06 +prpos.sub
  85.       78      70 10.2% 23-Nov-02 09:23:18 +spl_date.dec
  86.      743     241 67.5% 23-Nov-02 09:23:44 +spl_date.sub
  87.      120      93 22.5% 23-Jul-02 16:32:40 +nano-Assigns
  88.      242     140 42.1% 06-Aug-02 08:07:20 +nano-Assigns.info
  89.    20784    7033 66.1% 15-Jan-03 07:26:36 +nano.guide
  90.      436     210 51.8% 06-Aug-02 08:07:20 +nano.guide.info
  91.   198632   62729 68.4% 15-Jan-03 06:53:18 +nano_68000
  92.   181032   56887 68.5% 15-Jan-03 06:56:04 +nano_68020
  93.   181032   56887 68.5% 15-Jan-03 06:58:42 +nano_68020_FPU
  94.      628     254 59.5% 06-Aug-02 08:07:20 +prog.info
  95.      266     128 51.8% 12-Apr-02 06:46:06 +ansi.n
  96.     1019     361 64.5% 23-Jul-02 16:54:46 +benchm.n
  97.     6729    1782 73.5% 18-Nov-02 07:23:10 +calendar.n
  98.      277     173 37.5% 23-Jul-02 16:00:56 +circle.n
  99.      795     374 52.9% 24-Jul-02 08:39:36 +circle_l.n
  100.      970     310 68.0% 22-May-02 06:29:00 +clock.n
  101.      680     289 57.5% 25-May-02 15:35:02 +constyle.n
  102.     3916     966 75.3% 20-Aug-02 06:23:42 +date.n
  103.     5451    1317 75.8% 13-Jun-02 08:03:18 +datedata.n
  104.       26      26  0.0% 06-Aug-02 08:17:20 +hello.n
  105.      219     144 34.2% 05-Apr-02 06:59:00 +lab_demo.n
  106.     2724     893 67.2% 23-Nov-02 10:07:34 +primenum.n
  107.      680     327 51.9% 18-Nov-02 08:11:08 +viewtext.n
  108.      628     271 56.8% 15-Jan-03 07:01:26  nano.info
  109. -------- ------- ----- --------- --------
  110.   611448  193537 68.3% 15-Jan-103 07:27:50   36 files
  111.  
  112. Operation successful.
  113.